package Model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author cl
 * @date 2021/2/7 11:05
 */
public class Device {
    private Integer id;
    private String deviceType;
    private String deviceInfo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date insertTime;           //添加时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;           //添加时间

    public Device() {
    }

    public Device(Integer id, String deviceType, String deviceInfo, Date insertTime, Date updateTime) {
        this.id = id;
        this.deviceType = deviceType;
        this.deviceInfo = deviceInfo;
        this.insertTime = insertTime;
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Device{" +
                "id=" + id +
                ", deviceType='" + deviceType + '\'' +
                ", deviceInfo='" + deviceInfo + '\'' +
                ", insertTime=" + insertTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
